<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Person(name, age) {
            this.name = name;
            this.age = age;
        }
        // Person.prototype.nation = "china";

        // Person.prototype.speak = function() {
        //     console.log('hello');
        // }
        // Person.prototype.play = function() {
        //     console.log('王者荣耀');
        // }

        var obj = {
            nation: 'China',
            speak() {
                console.log('hello')
            },
            play() {
                console.log('王者荣耀')
            }
        }

        console.log(Person.prototype)
    </script>
</body>

</html>